package com.tuanzi.loan.business.repository.distribution;

import com.tuanzi.loan.vo.request.distribution.DistributionRecordSearchRequest;
import com.tuanzi.loan.vo.response.distribution.GalaxyCardDistributionRecordSearchResponse;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * 邀请明细统计 JOOQRepositoryInterface
 * @author JinRuiyang 2018/2/7 19:33:31
 */
public interface DistributionRecordRepository {

    Map<String, Integer> getProductList();

    Map<String, Integer> getChannelList();

    Map<String, String> getPlatformList();

    Map<String, Long> getDistributionActivity();

    /**
     * DistributionRecord查询
     * @param searchRequest 请求信息
     * @param pageable 分页信息
     * @return 响应列表
     */
    Page<GalaxyCardDistributionRecordSearchResponse> list(DistributionRecordSearchRequest searchRequest, Pageable pageable);
}